dofile (getScriptPath() .. "\\..\\patterns\\spy.lua")

--dofile (getScriptPath() .. "\\..\\patterns\\gap.lua")
dofile (getScriptPath() .. "\\..\\patterns\\imp.lua")
--dofile (getScriptPath() .. "\\..\\patterns\\ticks.lua")
--dofile (getScriptPath() .. "\\..\\patterns\\headoff.lua")

script_name = string.gsub(string.gsub(debug.getinfo(1).short_src, "%.[^%.]*$", ""), "^.*[\\/]", "")

spy.notify_prefix = "M10"

processor:AddInit(function()
	--handlers[INTERVAL_TICK] = {ticks = ticks.tick}
	--handlers[INTERVAL_M1] = {headoff = pattern.headoff.OnCandle}
	--handlers[INTERVAL_M1] = {ticks = ticks.m1, headoff = pattern.headoff.OnCandle}
	spy.handlers[INTERVAL_M10] = {imp = pattern.imp.OnCandle}
	
	--callbacks[INTERVAL_TICK] = {pressure = ticks.callback}
end)

processor:AddInit(function()
	--processor:SetTimer(500)
end)
	
